package com.you.mavenbuildtest.controller;

public enum Instence {
    INSTENCE;

    public void opt(){
        System.out.println("opt");
    }

    public static void main(String[] args) {
        Instence in1 = Instence.INSTENCE;
        Instence in2 = Instence.INSTENCE;

        in1.opt();
        System.out.println(in1 == in2);

    }
}
